	<!-- the necessary css for UItoTop -->	
<link type='text/css'
	href='<{$APPLICATION_URL}>/Themes/Default/Styles/ui.totop.css'
	media='screen' rel='stylesheet'>		

	<!-- easing plugin ( optional ) -->
	<script src="<{$APPLICATION_URL}>/Themes/Default/Scripts/easing.js" type="text/javascript"></script>
	<!-- UItoTop plugin -->
	<script src="<{$APPLICATION_URL}>/Themes/Default/Scripts/jquery.ui.totop.js" type="text/javascript"></script>

<div class="header">
            <div class="header_content">
                <div class="logo">
                	<a href="<{$APPLICATION_URL}>/Browse">Mua Hội</a>
                </div>
                <div class="email_box">
                    <form action="<{$APPLICATION_URL}>/Browse/" method="post">
                        <input class="email" type="text" name="email" value="nhập mail của bạn"/>
                        <!-- <button class="gui">-->
                        <input class="gui" type="submit" name="button" value="Gửi"/>
                        <!--  </button>-->
                    </form>
                </div>
            </div>
        </div>
        <div class="main_menu">
        	<div class="menu_content" style="position: relative;">
                <ul class="nav">
                    <li class="<{if $pageName == 'index'}>active<{/if}>">
                        <a href="<{$APPLICATION_URL}>/Browse/">Giá tốt hôm nay</a>
                    </li>
                    <li class="<{if $pageName == 'olderdeals'}>active<{/if}>">
                        <a href="<{$APPLICATION_URL}>/Browse/Deals/olderDeals/city/<{$citys}>">Giá tốt gần đây</a>
                    </li>
                    <li>
                        <a href="#">Giúp đỡ</a>
                    </li>
                </ul>
                <{if $hasLoggedIn == true && $loggedInUserType == "MEMBER"}>
             	
             		<div class="registor-succ" id="dUserInfo">
             		 <span style="background:none; padding-right:8px;" class="profile">
             		 <em>Tài khoản của bạn</em>
             		 <em class="arrow"><i style="font-weight:400"><{$currentUser->balance|number_format}> VNĐ</i></em>
             		 </span>
                            <a name="" class="avatar" href="<{$APPLICATION_URL}>/User">
             		 <img width="42" height="42" title="avatar" alt="avatar" src="<{$currentUser->getImage()}>"></a>
             		 <a id="aUserProfile" name="" class="profile " href="javascript:void(0)">
             		 	<em>Chào</em>   <em class="arrow"><i><{$currentUser->fullname}></i>
             		 	</em></a>
             		 	</div>
             	
                <{else}>
                <div class="login">
                    <a href="<{$APPLICATION_URL}>/Browse/Index/register"><span> Đăng ký</span></a><em>|</em><a href="<{$APPLICATION_URL}>/Browse/Index/login"><span>Đăng nhập</span></a>
                </div>
                <{/if}>
        	</div>
        	
        </div>
	<script type="text/javascript">
			$().UItoTop({ easingType: 'easeOutQuart' });
	</script>